#include <stdio.h>

int main()
{
#if 0    
    int money = 4000;
    if (money > 7999)
    {
        printf("我买了一部遥遥领先手机\n");
    }
    else if (money > 6499)
    {
        printf("我买到了iphone\n");
    }
    else if (money > 3999)
    {
        printf("我买了小米手机\n");
    }
    else
    {
        printf("go home!\n");
    }
#endif

#if 1
    printf("1.注册\n");
    printf("2.登录\n");
    printf("3.退出\n");
    printf("请输入你的选择...");
    int choice = 0;
    scanf("%d", &choice);

#if 0
    if (choice == 1)
    {
        printf("欢迎来到注册界面\n");
    }
    else if (choice == 2)
    {
        printf("欢迎来到登录界面\n");
    }
    else if (choice == 3)
    {
        printf("退出系统");
    }
#endif

    switch (choice)
    {
    case 1:
        printf("欢迎来到注册界面\n");
        break;
    case 2:
        printf("欢迎来到登录界面\n");
        break;
    case 3:
        printf("退出系统");
        break;
    default:
        break;
    }
#endif
    return 0;
}